#include <stdio.h>

int 
main(void) 
{
    int gs1, group_id, publisher_code, item_n, check_dig;

    puts("Enter ISBN:");
    scanf("%d-%d-%d-%d-%d", &gs1, &group_id, \
            &publisher_code, &item_n, &check_dig);

    printf("GS1 prefix: %d\n", gs1);
    printf("Group identifier: %d\n", group_id);
    printf("Publisher code: %d\n", publisher_code);
    printf("Item number: %d\n", item_n);
    printf("Check digit: %d\n", check_dig);

    return 0;
}
